import request from '@/utils/request';

export async function getAnnounce(params) {
  return request('/mgrApi/corpNoti/pageCorpNotList', {
    method: 'POST',
    body: params,
  });
}

export async function getNotice(params) {
  return request('/mgrApi/sysMsg/pageList', {
    method: 'POST',
    body: params,
  });
}

export async function getNoticeNum(params) {
  return request('/mgrApi/sysMsg/pageSendTypeCount', {
    method: 'POST',
    body: params,
  });
}
export async function getSignSuccess(params) {
  return request('/mgrApi/sysMsg/updateSignState', {
    method: 'POST',
    body: params,
  });
}
export async function getMsgUrl(params) {
  return request('/esApi/sysMsg/getMsgUrl', {
    method: 'POST',
    body: params,
  });
}
export async function getSignAll(params) {
  return request('/mgrApi/sysMsg/updateSignAll', {
    method: 'POST',
    body: params,
  });
}
export async function getAddNotice(params) {
  return request('/mgrApi/corpNotice/addCorpNotice', {
    method: 'POST',
    body: params,
  });
}
